<extend name="Public/base" />
<block name="body">
    <div class="main-title" style="padding-bottom: 10px;">
        <h2>消耗品配货</h2>
    </div>
    <div class="cf">
        <div class="fl hide">

        </div>
        <!-- 高级搜索 -->
        <!--<div class="search-form fr cf">
            <div class="sleft">
                <form action="{:U('SpBookproduct/index')}" method='post' id="form-search">
                    <select name="shopId" class="search-input" >
                        <option value='-1'>全部门店</option>
                        <volist name='shoplist' id='vo'>
                            <option value='{$vo.id}' <eq name='shopId' value='$vo.id'>selected="selected"</eq>>{$vo.name}</option>
                        </volist>
                    </select>
                    <select name="bookStatus" class="search-input" >
                        <option value='-1'>全部状态</option>
                        <option value='0' <eq name='bookStatus' value='0'>selected="selected"</eq>>未审核</option>
                        <option value='10' <eq name='bookStatus' value='10'>selected="selected"</eq>>已审核</option>
                        <option value='20' <eq name='bookStatus' value='20'>selected="selected"</eq>>配货拒绝</option>
                        <option value='30' <eq name='bookStatus' value='30'>selected="selected"</eq>>配货中</option>
                        <option value='40' <eq name='bookStatus' value='40'>selected="selected"</eq>>已发货</option>
                        <option value='50' <eq name='bookStatus' value='50'>selected="selected"</eq>>已签收</option>
                        <option value='60' <eq name='bookStatus' value='60'>selected="selected"</eq>>门店拒绝</option>
                    </select>
                    <input type="text" name="name" class="search-input" value="{:I('name')}" placeholder="请输入批次号">
                    <a class="sch-btn" href="javascript:;" id="search" url="#"><i class="btn-search" id="submit"></i></a>

                </form>
            </div>
        </div>-->
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table>
            <thead>
            <tr>
                <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
                <th>批次号</th>
                <th>申请部门</th>
                <th>申请时间</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                    <tr>
                        <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
                        <td><a href="{:U('Subpro/applyreviewdetail')}&batch={$vo['batch']}">{$vo.batch}</a> </td>
                        <td>{$vo.dpid|get_subpro_department_name}</td>
                        <td>{$vo.createAt|time_format}</td>
                        <td>{$vo.status|get_subpro_applystatus_name}</td>
                        <td>
                            <a href="{:U('Subpro/applydistributiondetail')}&batch={$vo['batch']}" class="btn btn-primary">配货</a>
                            <a href="{:U('Subpro/subproprint')}&batch={$vo['batch']}" target="_blank" class="btn btn-default">打印</a>
                        </td>
                    </tr>
                </volist>
                <else/>
                <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

    <script type="text/javascript">
        //搜索查询
        $('#submit').click(function () {
            document.getElementById("form-search").submit()
        });
        //导航高亮
        highlight_subnav('{:U('Subpro/applydistribution')}');
    </script>
</block>